<template>
  <el-dialog
    title="新增"
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    :visible.sync="value"
    width="60%"
    append-to-body
    :before-close="handleClose"
  >

  <div slot="footer">
      <el-button
        type="primary"
        size="medium"
        @click.native="save"
      >保存</el-button>
      <el-button size="medium" @click.native="cancel">关闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  props: {
    // 是否显示弹出框
    value: {
      type: Boolean,
      default: false
    }
  },
  data: () => ({}),
  methods: {
    handleClose() {
      this.$emit('showEzhanAddCheck')
    },
    save(){
      this.$emit('showEzhanAddCheck')
    },
    cancel(){
      this.$emit('showEzhanAddCheck')
    }
  }
}
</script>
<style lang="scss" scoped>
</style>